{OVERALL_HEADER}
<table width="700" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="200" valign="top">
	IF("{LOGGEDIN}"=="0"){<a href="{SITE_URL}signup.php">{LANG_JOIN}</a><br><a href="{SITE_URL}login.php">{LANG_LOGIN}</a><br>{:IF}
	IF("{LOGGEDIN}"=="1"){<a href="{SITE_URL}editprofile.php">{LANG_EDITPROFILE}</a><br>{:IF}
      <a href="{SITE_URL}add_story.php">{LANG_SUBMITS}</a><br>
	IF("{LOGGEDIN}"=="1"){<a href="{SITE_URL}logout.php">{LANG_LOGOUT}</a><br>{:IF}
      <br>
	  <strong>{LANG_CATS}</strong><br>
      <br>

      {LOOP: CATS}
	  <a href="{CATS.cat_url}">{CATS.cat_title}</a><br>
	  {/LOOP: CATS}
	  <br>
    <br></td>
    <td valign="top">
	<table width="100%" cellpadding="0" cellspacing="0">
	<tr><td width="60" align="left" valign="top"><table border="0" cellspacing="0" cellpadding="0"><tr><td background="{SITE_URL}templates/{TPL_NAME}/images/digg_back.jpg"><table width="52" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td align="center" height="28" valign="bottom"><div class="digs" id="numdigs{STORY_ID}">{STORY_DIGS}</div></td>
      </tr>
	  <tr>
	  <td height="24" align="center" valign="middle"><span class="digg">{LANG_DIGGS}</span></td>
	  </tr>
      <tr>
        <td height="2"></td>
      </tr>
      <tr>
           <td height="25" align="center"><div class="digit" id="digbut{STORY_ID}">IF("{USER_DUGG}"=="1"){{LANG_DUGG}{:IF}IF("{USER_DUGG}"=="0"){<a href="javascript:dig({STORY_ID});">{LANG_DIGIT}</a>{:IF}</div></td>
      </tr>
    </table></td>
    </tr></table></td>
	<td valign="top">
	  <table width="100%" height="70"  border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td valign="top"><a href="{STORY_URL}">{STORY_TITLE}</a></td>
        </tr>
		<tr>
		<td height="20"><span class="subline">{LANG_SUBBY} <a href="{PROFILE_LINK}">{STORY_USER_NAME}</a></span></td>
		</tr>
        <tr>
          <td valign="top">{STORY_DESC}</td>
        </tr>
        <tr>
          <td>&nbsp;</td>
        </tr>
        <tr>
          <td valign="bottom"><span class="bottomlinks">{LANG_TOPIC}: <a href="{CAT_URL}">{CAT_TITLE}</a></span></td>
        </tr>
      </table></td></tr>
	</table>
	<br>
	<table width="100%" border="0" cellpadding="0" cellspacing="0" style="border-bottom: 1px solid #dedede;">
      <tr>
        <td><div id="tabsB">
            <ul>
              <li id="current"><a href="{SITE_URL}story.php?id={STORY_ID}"><span>Comments ({STORY_COMMENTS})</span></a></li>
			  <li><a href="{SITE_URL}story.php?id={STORY_ID}&cmd=dugg"><span>Who Dugg this story?</span></a></li>
              <li><a href="{SITE_URL}story.php?id={STORY_ID}&cmd=email"><span>Email This Link</span></a></li>
            </ul>
        </div></td>
      </tr>
    </table>
  	<br>
	<strong>{LANG_COMS}</strong><br>
	{LOOP: COMMENTS}
	<table width="100%" border="0" cellpadding="0" cellspacing="0">
	<tr><td height="20" bgcolor="#f7f5f2"><table border="0" cellpadding="0" cellspacing="0">
	  <tr><td width="20" align="left"><img src="{SITE_URL}{COMMENTS.avatar}"></td>
	  <td> by <a href="{COMMENTS.user_link}">{COMMENTS.user_name}</a> {COMMENTS.ago} {LANG_AGO}</td></tr></table></td>
	</tr>
	<tr><td>{COMMENTS.comment_desc}</td></tr>
	</table>
	<br>
	{/LOOP: COMMENTS}
    <br>
    <br>
    <strong>{LANG_ADDCOM}</strong><br>
	IF("{LOGGEDIN}"=="0"){{LANG_PLEASE} <a href="{SITE_URL}login.php">{LANG_LOGIN}</a> {LANG_OR} <a href="{SITE_URL}signup.php">{LANG_SIGNUP}</a> {LANG_TOLEAVE}{:IF}
    IF("{LOGGEDIN}"=="1"){<form name="form1" method="post" action="{SITE_URL}story.php?id={STORY_ID}" style="padding:0px;margin:0px;">
      <table width="100%"  border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><textarea name="comment" id="comment" style="width:95%;height:100px;"></textarea></td>
        </tr>
        <tr>
          <td><input type="submit" name="Submit" value="{LANG_ADDCOM2}"></td>
        </tr>
      </table>
      <br>
        </form>{:IF}
    <br>
    <br></td>
  </tr>
</table>
{OVERALL_FOOTER}